package com.weiyuwqj.server.mapper;

import com.weiyuwqj.api.model.BasItem;
import com.weiyuwqj.api.model.BusItemAuto;
import com.weiyuwqj.api.model.vo.ItemAutoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
@Repository
public interface BusItemAutoMapper extends Mapper<BusItemAuto> {


    public List<BusItemAuto> selectListsByItem(Map map);
    public Integer insertByReturnPrimaryKey(BusItemAuto auto);

    public void updateAutoRule(Map map);

    public void deleteAutoByAutoId(@Param(value ="autoId")Integer autoId,@Param(value ="userId")Integer userId);

    public void modifyAutoStatusByAutoId(BusItemAuto auto);

    public void modifyAutoByAutoId(BusItemAuto auto);

    public ItemAutoVo getAutoByUserId(@Param(value ="userId")Integer userId);

}